package com.scsystem.xysc.service;

import com.scsystem.xysc.mapper.CartMapper;
import com.scsystem.xysc.pojo.Cart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.scsystem.xysc.pojo.vo.ReturnResult;
import jakarta.annotation.Resource;

import java.util.List;

/**
* @author sky
* @description 针对表【cart】的数据库操作Service
* @createDate 2023-09-16 15:56:38
*/
public interface CartService extends IService<Cart> {

    ReturnResult<Boolean> addCart(Long uid, Long pid, Integer quantity);

    ReturnResult<Boolean> deleteCart(Long uid, Long pid);

    ReturnResult<Boolean> updateCart(Long uid, Long pid, Integer quantity);

    ReturnResult<List<Cart>> selectCart(Long uid);
}
